package com.bsoft.gol.hcs.enumcase;

/**
 * 统计维度类型
 * Created by ChenJij on 2022/7/27.
 */
public enum StatisticExtraTypeEnum {
    WD("1", "维度"),
    WTSX("2", "问题属性及分类");

    private final String type;
    private final String name;

    public String getType() {
        return type;
    }

    public String getName() {
        return name;
    }

    StatisticExtraTypeEnum(String type, String name) {
        this.type = type;
        this.name = name;
    }

    public static String getNameByKey(String type) {
        for (StatisticExtraTypeEnum temp : StatisticExtraTypeEnum.values()) {
            if (temp.getType().equals(type)) {
                return temp.getName();
            }
        }
        return null;
    }
}